import 'package:flutter/material.dart';
import 'package:navigator_demo/navigator2pointzero/router/app_router_delegate.dart';

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('home'),
      ),
      body: Stack(children: [
        ListView(
          children: [
            ListTile(
              title: Text('item1'),
              onTap: () {
                AppRouterDelegate.of(context).push('A');
              },
            ),
          ],
        ),
      ]),
    );
  }
}
